package com.sun.jdk.mytest;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

public class DateTest {
    public static void main(String[] args) {

        String format = "yyyy-MM-dd";
        Date date = new Date();
        System.out.println(DateFormatUtils.format(date, format));
    }
}
